package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wux
 * @date 2023/5/30 8:56
 */
@Data
@TableName("t_prod_record")
@ApiModel(value = "生产记录表")
public class TProdRecord implements Serializable {
    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "生产单编号")
    private String taskCode;

    @ApiModelProperty(value = "生产批次号")
    private String batchCode;

    @ApiModelProperty(value = "产量")
    private Integer finishNum;

    @ApiModelProperty(name = "操作员",notes = "")
    private String operator ;

    @ApiModelProperty(name = "生产日期",notes = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date madeDate ;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "产品id")
    private Long prodId;

}
